package com.micaelvesterlund.skeerkie.server.engine;

import java.util.Comparator;

import com.micaelvesterlund.skeerkie.shared.domain.Standing;

public class TotalPointsSorter implements Comparator<Standing> {

	public int compare(Standing standing1, Standing standing2) {
		if (standing1.getTotalPoints() > standing2.getTotalPoints())
			return -1;
		else if (standing1.getTotalPoints() < standing2.getTotalPoints())
			return 1;
		else
			return 0;
	}

}
